package cn.coisini.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author xiangshaw
 * Description: 文章、标签关联表
 */
@Data
@TableName("article_tag")
@Tag(name = "ArticleTag",description = "文章标签实体")
public class ArticleTag  implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId("id")
    private String id;

    @Schema(description = "文章id")
    @TableField("article_id")
    private String articleId;

    @Schema(description = "标签id")
    @TableField("tag_id")
    private String tagId;
}
